.class Lcom/brixd/niceapp/activity/fragment/CommentWindow$3;
.super Ljava/lang/Object;
.source "CommentWindow.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/fragment/CommentWindow;->initWidgetActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/fragment/CommentWindow;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/fragment/CommentWindow;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/fragment/CommentWindow;

    .prologue
    .line 87
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/CommentWindow$3;->this$0:Lcom/brixd/niceapp/activity/fragment/CommentWindow;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 7
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 91
    const-string v1, "\u53d1\u5e03"

    invoke-static {v1}, Lcom/zuiapps/suite/utils/log/LogUtil;->i(Ljava/lang/String;)V

    .line 92
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CommentWindow$3;->this$0:Lcom/brixd/niceapp/activity/fragment/CommentWindow;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CommentWindow;->mComment:Landroid/widget/EditText;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CommentWindow;->access$100(Lcom/brixd/niceapp/activity/fragment/CommentWindow;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string v2, "\n"

    const-string v3, "<br>"

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 93
    .local v0, "comment":Ljava/lang/String;
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_53

    .line 94
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CommentWindow$3;->this$0:Lcom/brixd/niceapp/activity/fragment/CommentWindow;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CommentWindow;->mToast:Landroid/widget/Toast;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CommentWindow;->access$200(Lcom/brixd/niceapp/activity/fragment/CommentWindow;)Landroid/widget/Toast;

    move-result-object v1

    if-eqz v1, :cond_36

    .line 95
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CommentWindow$3;->this$0:Lcom/brixd/niceapp/activity/fragment/CommentWindow;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CommentWindow;->mToast:Landroid/widget/Toast;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CommentWindow;->access$200(Lcom/brixd/niceapp/activity/fragment/CommentWindow;)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->cancel()V

    .line 97
    :cond_36
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CommentWindow$3;->this$0:Lcom/brixd/niceapp/activity/fragment/CommentWindow;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CommentWindow$3;->this$0:Lcom/brixd/niceapp/activity/fragment/CommentWindow;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CommentWindow;->mContext:Landroid/content/Context;
    invoke-static {v2}, Lcom/brixd/niceapp/activity/fragment/CommentWindow;->access$300(Lcom/brixd/niceapp/activity/fragment/CommentWindow;)Landroid/content/Context;

    move-result-object v2

    const v3, 0x7f0c0041

    const/4 v4, 0x0

    invoke-static {v2, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v2

    # setter for: Lcom/brixd/niceapp/activity/fragment/CommentWindow;->mToast:Landroid/widget/Toast;
    invoke-static {v1, v2}, Lcom/brixd/niceapp/activity/fragment/CommentWindow;->access$202(Lcom/brixd/niceapp/activity/fragment/CommentWindow;Landroid/widget/Toast;)Landroid/widget/Toast;

    .line 98
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CommentWindow$3;->this$0:Lcom/brixd/niceapp/activity/fragment/CommentWindow;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CommentWindow;->mToast:Landroid/widget/Toast;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CommentWindow;->access$200(Lcom/brixd/niceapp/activity/fragment/CommentWindow;)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 105
    :cond_52
    :goto_52
    return-void

    .line 102
    :cond_53
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CommentWindow$3;->this$0:Lcom/brixd/niceapp/activity/fragment/CommentWindow;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CommentWindow;->mOnCommitListener:Lcom/brixd/niceapp/activity/fragment/CommentWindow$OnCommitListener;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CommentWindow;->access$400(Lcom/brixd/niceapp/activity/fragment/CommentWindow;)Lcom/brixd/niceapp/activity/fragment/CommentWindow$OnCommitListener;

    move-result-object v1

    if-eqz v1, :cond_52

    .line 103
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CommentWindow$3;->this$0:Lcom/brixd/niceapp/activity/fragment/CommentWindow;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CommentWindow;->mOnCommitListener:Lcom/brixd/niceapp/activity/fragment/CommentWindow$OnCommitListener;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CommentWindow;->access$400(Lcom/brixd/niceapp/activity/fragment/CommentWindow;)Lcom/brixd/niceapp/activity/fragment/CommentWindow$OnCommitListener;

    move-result-object v1

    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CommentWindow$3;->this$0:Lcom/brixd/niceapp/activity/fragment/CommentWindow;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CommentWindow;->mShareToWeibo:Landroid/widget/CheckBox;
    invoke-static {v2}, Lcom/brixd/niceapp/activity/fragment/CommentWindow;->access$500(Lcom/brixd/niceapp/activity/fragment/CommentWindow;)Landroid/widget/CheckBox;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v2

    invoke-interface {v1, v0, v2}, Lcom/brixd/niceapp/activity/fragment/CommentWindow$OnCommitListener;->onCommit(Ljava/lang/String;Z)V

    goto :goto_52
.end method
